extends Control

func _ready():
	process_mode = Node.PROCESS_MODE_ALWAYS


func _on_pause_pressed() -> void:
	get_tree().paused = true
	self.visible = true
	$暂停动画.play("new_animation")


func _on_resume_pressed() -> void:
	get_tree().paused = false
	$继续动画.play("继续")

	
func _on_return_pressed() -> void:
	get_tree().change_scene_to_file("res://ui.tscn")


func _on_rule_pressed() -> void:
	self.visible = false
	get_node("/root/主场景/CanvasLayer/规则面板/播放").play("规则弹出")
	get_node("/root/主场景/CanvasLayer/规则面板/知道了").visible =true
